package com.itheima.utils;

import java.util.ArrayList;
import java.util.List;

public class ArrayToListUtil {
    private ArrayToListUtil(){}
    public static<T> List toList(T...t){
        List<T> list = new ArrayList<>();
        for (T elem : t) {
            list.add(elem);
        }
        return list;
    }
}
